﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using PlayFab;
using PlayFab.ClientModels;

public class RemoveFriendOption : RightClickOption
{	
	public Text friendNameText;

	void Start()
	{	
		sortingOrder = 4;
		if (friendNameText != null)
		actionName = "Remove " + friendNameText.text;
	}
	public override void Action (GameObject sender)
	{
		if (friendNameText != null)
		{
			LoginManager.instance.RemoveFriendButton (friendNameText);
		};

	}

}
